#ifndef RICHTEXTVIEW_H
#define RICHTEXTVIEW_H

#include <QWidget>
#include <QTextDocument>

class RichTextView : public QWidget
{
		Q_OBJECT
	public:

		explicit RichTextView(QWidget *parent = 0);

		QTextDocument* document() const;
		void setDocument(QTextDocument* value);

		bool contentIsVisible() const;

	signals:

	public slots:

		void setContentIsVisible(bool value);

	protected:

		void paintEvent(QPaintEvent* event);

	private:

		QTextDocument* m_pDocument;
		bool _contentIsVisible;

};

#endif // RICHTEXTVIEW_H
